Image size and orientation can be modified in several ways using ImagXpress®:
- Modify the size or orientation of an image during loading of the image into ImagXpress (see Specify Load Options). In this case, the image in the ImageX object is modified to the specified size and orientation, but the source image is not modified.
- Modify the size or orientation of an image during saving of the image (See Specify Save Options). In this case, the image in the ImageX object is not modified, but the target image is modified.
- Modify the size or orientation of an image in ImagXpress. In this case, the image in the ImageX object is modified to the specified size and orientation, but the source image is not modified.
Modify the Size or Orientation of an Image in ImagXpress
The size and orientation of an imageX object can be modified by assigning it to the processor, then invoking processor methods:
Resize: The Resize method resizes the image (in pixels) according to the specified algorithm (ResizeType enumeration).
Crop: The Crop method crops the current image to the specified size.
The AutoCrop and CropBorder methods also provide capability to crop a border from an image. These are generally used primarily to clean up the image, rather than resize it. |
Flip: The Flip method vertically flips the image.
Mirror: The Mirror method horizontally mirrors the image.
Rotate: The Rotate method rotates the image by the specified angle.